package com.bg.sparkproject.pattern.factory;

/**
 * @Auther: zhengshunzhi
 * @Date: 2018/12/18 10:54
 * @Description: 实现类A
 */
public class ProductA implements Product {

    public ProductA() {
        System.out.println("ProductA");
    }

    @Override
    public Product createProduct() {
        return new ProductA();
    }
}
